package com.jasmine.bjstkserver.server.article.online.model;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author jasmineXz
 */
public class ArticleReq {

    @NotNull(message = "参数个数错误",groups = {ValidArtOnline.One.class})
    @Min(value = 1,message = "参数错误",groups = ValidArtOnline.class)
    private Integer articleId;

    private String type;

    private Integer userId;

    @Min(value = 1,message = "参数错误",groups = ValidArtOnline.class)
    private Integer folderId;

    /**
     * ALL  : 不显示文章内容
     * MD   : 显示markdown内容
     * HTML : 显示html内容
     */
    private String contentType;

    private Integer start;
    private Integer limit;

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getFolderId() {
        return folderId;
    }

    public void setFolderId(Integer folderId) {
        this.folderId = folderId;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }
}
